package com.bdqn.t330.ch11.dao;

import com.bdqn.t330.ch11.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {

    public SysUser login(SysUser sysUser);

    public List<SysUser> getUserList();

    public int count();

    public List<SysUser> getUserListByPoJo(SysUser sysUser);

    public int add(SysUser sysUser);

    public List<SysUser> getUserListPage(@Param(value = "pageIndex") Integer pageIndex,
                                         @Param(value = "pageSize") Integer pageSize,
                                         @Param(value = "userName") String userName);

    public Integer getUserListPageCount(@Param(value = "userName") String userName);

    public Integer deleteById(@Param(value = "id") Integer id);
}
